<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员添加</title>
<link rel="stylesheet" href="/css_system/common.css" />
<link rel="stylesheet" href="/css_system/main.css" />
<link href="/js/jQueryUI/jquery-ui.css" rel="stylesheet">

<!-- 对话框 -->
<link rel="stylesheet" href="/js_system/easydialog/easydialog.css" />
<script type="text/javascript" src="/js_system/easydialog/easydialog.js"></script>
<script type="text/javascript" src="/js_system/cueeasy.js"></script>
<script type="text/javascript" src="/js_system/jquery.min.js"></script>
<script type="text/javascript" src="/js_system/fun.js"></script>
<script type="text/javascript" src="/js_system/user.js"></script>
</head>
<body>
	@include('errors.error')
  	<input type="hidden" id="hiresult" name="hiresult" value="">
    <form action="/admin_system/user/updateUser" method="post">
      	<input type="hidden" id="hiid" name="hiid" value="{{$Manageuser->UserID}}">
		<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
		<input type="hidden" name="userId" value="{{$Manageuser->UserID}}">
		<div class="container">
			<div class="location clearfix">
				<div class="here_area fl">
					<strong>当前位置：</strong>用户中心&nbsp;&nbsp;&raquo;&nbsp;&nbsp;修改管理员信息
				</div>
				<div class="here_btn fr">
					<input type="button" name="button" class="btn btn_refresh" value="刷新" onclick="location.replace(location.href);" />
				</div>
			</div>
			<div id="tabs">
				<ul>
					<li><a href="#tabs-1">基本信息</a></li>
				</ul>
				<div id="tabs-1">
					<table class="dataTable">
						<tbody>
							<tr>
								<td class="ltd">登录账号</td>
								<td class="rtd"><input type="text" id="txtUserName" name="txtUserName" value="{{$Manageuser->UserName}}" class="input-text" /></td>
							</tr>
							<tr>
								<td class="ltd">登录密码</td>
								<td class="rtd"><input type="password" id="txtUserPwd" name="txtUserPwd" class="input-text" /></td>
							</tr>
							<tr>
								<td class="ltd">确认密码</td>
								<td class="rtd"><input type="password" id="txtUserPwd" name="txtUserPwd2" class="input-text" /></td>
							</tr>

							<tr>
								<td class="ltd">管理角色</td>
								<td class="rtd">
									<select name="role" class="select">
										<option value="0" @if($Manageuser->role == 0) selected @endif>超级管理员</option>
										<option value="1" @if($Manageuser->role == 1) selected @endif>普通管理员</option>
										<option value="0" @if($Manageuser->role == 2) selected @endif>游客</option>
									</select>
								</td>
							</tr>

							<tr>
								<td class="ltd">姓名</td>
								<td class="rtd"><input type="text" id="txtRealName" name="txtRealName" value="{{$Manageuser->RealName}}" class="input-text" /></td>
							</tr>
							<tr>
								<td class="ltd">联系方式</td>
								<td class="rtd"><input type="text" id="txtTel" name="txtTel" value="{{$Manageuser->Tel}}" class="input-text" /></td>
							</tr>
							<tr>
								<td class="ltd">邮箱</td>
								<td class="rtd"><input type="text" id="txtEmail" name="txtEmail" value="{{$Manageuser->Email}}" class="input-text" /></td>
							</tr>
						</tbody>
						  
						<tfoot>
							<tr>
								<td class="ltd"></td>
								<td class="rtd"><input type="submit" class="btn btn_save" id="btnEditUser" name="btnEditUser" value="保存"></td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		</div>
	</form>
	<script src="/js_system/jQueryUI/jquery-ui.js"></script>
	<script src="/js_system/jqueryui.js"></script>
</body>
</html>